<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>
    <title><?php echo $title; ?></title> 
    <meta name="keywords" content="<?php echo $keywords; ?>" /> 
    <meta name="description" content="<?php echo $description; ?>" /> 
    <link type="text/css" rel="stylesheet" href="/skins/css/style.css" />
	<link type="text/css" rel="stylesheet" href="/skins/css/smoothness/jquery-ui-1.8.16.custom.css" />
	<?=$js_scripts;?>
</head>
<body> 
<div id="container">
<?if(isset($_SESSION['user_data'])):?>
    <div id="header">  
        <h1>Социальный Домен</h1> 		
			<div class="usermenu">
			<p><?echo "Добро пожаловать, " . $_SESSION['user_data']['name'] . "."?></p>
			<p><a href="<?=href('page=requests','rem=add')?>">Заявка</a> <a href="<?=href('page=assets','rem=add')?>">Актив</a> <a href="<?=href('page=domains','rem=add_domain')?>">Домен</a> <?php echo $link_registr; ?></p> 
			</div>
			<div style="clear:both;"></div>
    </div> 	 
	<div id="menu"> 
		<ul> 
			<li<?if($GET['page']=='requests') echo " class=\"active\"";?>><a href="<?php echo href('page=requests','rem=read'); ?>">Заявки</a></li>
			<li<?if($GET['page']=='assets') echo " class=\"active\"";?>><a href="<?php echo href('page=assets','rem=read'); ?>">Активы</a></li>
			<li<?if($GET['page']=='members') echo " class=\"active\"";?>><a href="<?php echo href('page=members','rem=read'); ?>">Участники</a></li>
			<li<?if($GET['page']=='domains') echo " class=\"active\"";?>><a href="<?php echo href('page=domains','rem=read'); ?>">Домены<?if(!empty($num_invites) AND $num_invites > 0) echo "(".$num_invites.")";?></a></li>
		</ul>
	</div>
<?endif?>
<?php echo $content;?>
</div>
<?if(isset($_SESSION['user_data'])):?>
<div id="footer"> 
	<p class="center title">В Нашем Домене:</p>
	<p class="center">Братство. Поддержка. Взаимопомощь.</p>
	<div class="center"><img src="http://socdomen.ru/skins/images/logo_w100.png"/></div>
	<p class="center"><a href="http://socdomen.ru/forum">Форум</a> <a href="http://socdomen.ru/index.php?page=rss">RSS</a></p>
	<!-- Yandex.Metrika counter -->
		<div style="display:none;"><script type="text/javascript">
		(function(w, c) {
			(w[c] = w[c] || []).push(function() {
				try {
					w.yaCounter9567379 = new Ya.Metrika({id:9567379,
							clickmap:true,
							accurateTrackBounce:true,
							ut: 'noindex'});
				}
				catch(e) { }
			});
		})(window, "yandex_metrika_callbacks");
		</script></div>
		<script src="//mc.yandex.ru/metrika/watch.js" type="text/javascript" defer="defer"></script>
		<noscript><div><img src="//mc.yandex.ru/watch/9567379?ut=noindex" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
	<!-- /Yandex.Metrika counter -->
</div> 
<?endif?> 
</body> 
</html>
